package cloud.hadoop.bds.service.serviceImp;

import cloud.hadoop.bds.model.common.Result;
import cloud.hadoop.bds.service.CourseService;
import cloud.hadoop.bds.utils.ReadFile;
import org.springframework.stereotype.Service;

@Service
public class CourseServiceImp implements CourseService {

    @Override
    public Result selectCourse() {
        //创建读取文件工具类
        ReadFile readFile = new ReadFile();
        //调用工具类中
        Result result = readFile.readCourseData("D:\\CodeRepo\\Hadoop\\bd-system\\big-data-system\\src\\main\\java\\cloud\\hadoop\\bds\\utils\\mapreduce_course_data.txt");
        return result;
    }
}